<template>
  <div class="block-box-wrap">
    <div class="block-box-title" v-if="title">{{ title }}</div>
    <slot />
  </div>
</template>
<script>
export default {
  props: {
    title: String,
  },
};
</script>

<style lang="scss" scoped>
.block-box-title {
  font-size: 34px;
  position: relative;
  padding: 28px 20px;
  &:after {
    content: "";
    display: block;
    width: 4px;
    height: 34px;
    background: $primy-color;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}
</style>
